# -*- coding:utf-8 -*-


"""
@version: v1.0
@author: 夏伟坤
@Email: 915624876@qq.com
@software: PyCharm
@project: DLImagePj
@file: config.py
@time: 2021/10/26 12:50
"""


# 数据库
SQLALCHEMY_DATABASE_URI = "mysql+pymysql://root:123456@localhost:3306/yd_mysql"
# SQLALCHEMY_DATABASE_URI = "mysql://root:123456@127.0.0.1:3306/yd_mysql"
SQLALCHEMY_POOL_SIZE = 100
SQLALCHEMY_POOL_RECYCLE = 1800
SQLALCHEMY_COMMIT_TEARDOWN = True
SQLALCHEMY_TRACK_MODIFICATIONS = True
SQLALCHEMY_COMMIT_ON_TEARDOWN = True

# redis缓存数据库
REDISHOST = '127.0.0.1'
REDISPORT = 6379